package com.hirain.abstractfactory;

import org.junit.Test;

/**
 * Created by caicf on 2016/8/27.
 */
public class Client {
    @Test
    public void getProductAInfo() {
        AbstractFactory factory=new ConcreteFactory1();
        AbstractProductA productA= factory.createProductA();
        String info=productA.info();
        System.out.println(info);
    }
}
